#pragma once
#include "templatevector.h"
#include "Vector2D.h"
#define SAFE_RELEASE_TVECTOR_POINTER(x) for(int i = 0; i < x.size(); i++)\
							 {delete x[i];}x.release();
struct mapNode
{
	V2DI pos;
	int m_id;
	int type;
};
struct map
{
	TemplateVector<char*> tileset;
	char* m_title;
	int m_width;
	int m_height;

	~map()
	{
		release();
	}

	void release()
	{
		SAFE_RELEASE_TVECTOR_POINTER(tileset);
	}
};